<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/1
 * Time: 13:55
 */
namespace app\index\validate;


use think\Validate;

class Checkform extends Validate{

    protected $rule=[
        "name"=>"require|max:25",
        'surn'=>"require|max:25",
        "eamil"=>"eamil",
        "pwd"=>"require|max:12",
    ];
    protected $message=[
        'name'=>'不得为空',
        'name'=>'最长不得超过15位',
        'surn'=>'不得为空',
        'surn'=>'不得超过15位',
        'emai'=>'格式错误',
        'pwd'=>'密码不得为空',
        'pwd'=>'最长为12位'
    ];
}